package com.then.architecture.di;

import android.arch.lifecycle.ViewModelProvider;

import com.then.architecture.viewmodel.ViewModelFactory;

import dagger.Binds;
import dagger.Module;

@Module
public  abstract class BaseViewModelModule {


    /* @Binds
     @IntoMap
     @ViewModelKey(UserViewModel.class)
     abstract ViewModel bindUserViewModel(UserViewModel userViewModel);

     @Binds
     @IntoMap
     @ViewModelKey(SearchViewModel.class)
     abstract ViewModel bindSearchViewModel(SearchViewModel searchViewModel);
    */


    @Binds
    public   abstract ViewModelProvider.Factory bindViewModelFactory(ViewModelFactory factory);

}
